package net.tv90.bfmccore.util;

public class TimeUtil {
    /**
     * seconds -> HH:mm:ss
     * @param seconds 秒
     * @return HH:mm:ss
     */
    public static String secondsToDate(long seconds) {
        long hour = seconds / 3600;
        long minute = (seconds % 3600) / 60;
        long second = seconds % 60;
        return  (hour < 10 ? "0" + hour : "" + hour) + ":" +
                (minute < 10 ? "0" + minute : "" + minute) + ":" +
                (second < 10 ? "0" + second : "" + second);
    }
}
